<template>
   <el-breadcrumb :separator-icon="ArrowRight">
    <!-- <el-breadcrumb-item :to="{ path: '/' }">homepage</el-breadcrumb-item> -->
    <el-breadcrumb-item v-for="item in breadcrumbList" :key="item.path">{{ item.meta.title }}</el-breadcrumb-item>
  </el-breadcrumb>
</template>

<script setup>
    import { ref, onMounted, computed } from 'vue'
    import { useRoute } from 'vue-router'
    import { ArrowRight } from '@element-plus/icons-vue'

    const route = useRoute()

    const breadcrumbList = computed(() => {
      if (route.matched[0].path == '/farm/:catchAll(.*)' || route.matched[0].path == '/home/:catchAll(.*)') return []
      return route.matched
    })


</script>

<style lang="scss" scoped>
    
</style>